import React from "react";
import Icon from "./icon.png";
import useStorePage from "@/store/useStorePage";
import './index.less';
const BackHomeBtn = () => {
    const { setPage } = useStorePage();
    return (
        <div className="back-home-btn" onClick={() => setPage('home')}>
            <img src={Icon} alt="" />
            <span>返回首页</span>
        </div>
    );
};

export default BackHomeBtn;